<span class="hello">Hello</span>
<div class="hello">Hello</div>
<style>
    span, div {
        font-size: 30px;
    }
    span.hello {
        background: gray;
    }
    div.hello {
        background: pink;
    }
</style>